package com.ajx.todo.study.designpattern.servicelocator;

/**
 * Created by lai on 2017/9/1.
 * 接着实现注册机（定位器）
 */

public class Locator {
    public static ISms _service;
    public static ISms getSms(){
        return _service;
    }
    static void register(ISms sms){
        _service=sms;
    }
}
